﻿using System;

using ApplicationLibrary;

namespace Fighter.ModuleData
{
    internal class RegisterModule : ApplicationLibrary.SqlConnector.RegisterModule
    {
        public override string Application()
        {
            return "FGHT";
        }

        public override string Module()
        {
            return "FGHT";
        }

        public override int CurrentVersion()
        {
            return 1;
        }

        public override Version DllVersion
        {
            get
            {
                return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
            }
        }

        public override void RegisterCountersAndCodes()
        {
        }

        public override void Initialize()
        {
            GlobalInfo.ResourceManager = new global::System.Resources.ResourceManager("Fighter.Properties.Resources", typeof(Properties.Resources).Assembly);
        }

        public override void AddScrounger(ApplicationLibrary.DBManager.iScrounger frm, NameSpace nameSpace)
        {
            //if (nameSpace.ApplicationPath == "Plumber.Plumber.Masters.Forms.Masters")
            //    frm.ScroungerList.Add()
        }

        public override ApplicationLibrary.Preferences.PreferencePanel[] RegisterPreferences()
        {
            //return new ApplicationLibrary.Preferences.PreferencePanel[]
            //{
            //    new AccountingPreferencePanel()
            //};
            return null;
        }

        protected override bool CreateDBTables()
        {
            return true;
        }

        protected override bool UpdateDBTables()
        {
            return true;
        }
    }
}